home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 285_02 / hoc_is.doc < prev    next >
Text File  |  1990-07-08  |  640b  |  28 lines

  1. HOC3 is an interactive calculator program that, in addition to 
  2. the usual arithmetic operations, does exponentiation, sin, cos,
  3. atan, log, log10, sqrt, and int.  It also contains several built-in
  4. numeric constants: PI, E, GAMMA, DEG, and PHI.  Alphabetic variable
  5. names are also supported.
  6.  
  7. A sample session with HOC3 follows:
  8.  
  9. a = 9                                  ( user entry)
  10. b = 1                                ( user entry)
  11. a + b                                ( user entry)
  12.         10                            ( HOC evaluates the expression )
  13. 4^2
  14.         16
  15. PI
  16.         3.1415926535
  17.  
  18. sin( PI/2 )
  19.         1
  20.  
  21. x = PI/2
  22. a = sin(x)
  23. b = cos(x)
  24. a^2 + b^2
  25.         1
  26.  
  27. ^Z                                    ( here, user enters a Control-Z to quit )
  28.